package com.car.dal.dao.quit;

import java.util.List;

import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.TgQuit;
import com.car.util.Page;

public class QuitDaoImp extends IbatisCommonDao<TgQuit, Long> implements QuitDao {

	@Override
	public List<TgQuit> getQuitByType(TgQuit quit, Page page) {
		quit.setFirstrownum(page.getFirstrownum());
		quit.setPagesize(page.getPagesize());
		return this.queryForEntityList(TgQuit.class, "getQuitByType", quit);
	}

	@Override
	public Integer getCountQuitByType(TgQuit quit) {
		return this.queryForInteger("getCountQuitByType", quit);
	}

	@Override
	public List<TgQuit> getQuitByType1(TgQuit quit) {
		 return this.queryForEntityList(TgQuit.class, "getQuitByType1", quit);
	}

}
